package ystp.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import ystp.model.Xinyaoshenqing;
import ystp.model.XinyaoshenqingExample;

public interface XinyaoshenqingMapper {
    int countByExample(XinyaoshenqingExample example);

    int deleteByExample(XinyaoshenqingExample example);

    int deleteByPrimaryKey(String id);

    int insert(Xinyaoshenqing record);

    int insertSelective(Xinyaoshenqing record);

    List<Xinyaoshenqing> selectByExample(XinyaoshenqingExample example);

    Xinyaoshenqing selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Xinyaoshenqing record, @Param("example") XinyaoshenqingExample example);

    int updateByExample(@Param("record") Xinyaoshenqing record, @Param("example") XinyaoshenqingExample example);

    int updateByPrimaryKeySelective(Xinyaoshenqing record);

    int updateByPrimaryKey(Xinyaoshenqing record);

    List<Map<String,Object>> findXinyaoPagingByXiangmuId(@Param("xiangmuid") String ppxiangmuId, @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    Object countXinyaoByXiangmuId(@Param("xiangmuid") String ppxiangmuId);

    List<Map<String,Object>> findXinyaoBiaojueByXiangmuId(@Param("xiangmuid") String ppxiangmuId,@Param("userid") String ppuserId, @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    Object countXinyaoBiaojueByXiangmuId(@Param("xiangmuid") String ppxiangmuId,@Param("userid") String ppuserId);
}